package cn.wolfcode.ssm.mapper;

import cn.wolfcode.ssm.domain.Activity;
import cn.wolfcode.ssm.qo.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface ActivityMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Activity record);

    Activity selectByPrimaryKey(Long id);

    List<Activity> selectAll();

    int updateByPrimaryKey(Activity record);

    List<Activity> selectForList(QueryObject qo);

    void insertChoice(@Param("employeeId") Long employeeId, @Param("activityItemId") Long activityItemId, @Param("date") Date date);

    List<Long> selectChoiceByActivityId(Long id);
}